<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<script>
    function fn(){ 
        console.log(arguments);         //arguments里存储所有传递过来的参数
        console.log(arguments.length);  //arguments具有数组的length属性
        console.log(arguments[0]);      //arguments按索引方式进行存储数据
    }
    fn(1,2,3,4);
</script>
</head>
<body>
    
</body>
</html>